# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-gmpy
pkgver=1.17
pkgrel=2
pkgdesc='GMP or MPIR interface to Python.'
arch=('x86_64' 'aarch64')
url='https://pypi.python.org/pypi/gmpy/'
license=('custom:unknown')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/26/37/2184c13cee81e1dbeaebbb13570195247e73ab2138a3db0c9d2c5347e372/gmpy-$pkgver.zip")
sha512sums=('f45b9862beffdc74e1e5840ec8ea1a7e15a31518df5e3782f247e98566d7d471fc4105e30d8c90194c714c46b77edfd944192fef6446cd6d60d1e4c304d0b029')

build() {
  cd "gmpy-$pkgver"

  python2 setup.py build
}

package() {
  cd "gmpy-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

